package org.example.mapper;

import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Select;
import org.example.domain.GoodsMaterial;
import org.example.dto.GoodsMaterialDto;
import org.example.vo.GoodsMaterialVo;

import java.util.List;

/**
* @author 19816
* @description 针对表【a_goods_material】的数据库操作Mapper
* @createDate 2024-05-29 19:47:22
* @Entity org.example.domain.GoodsMaterial
*/
public interface GoodsMaterialMapper {

    List<GoodsMaterialVo> materialList(String id);

    @Select("select * from a_goods_material as ycl where id=#{id}")
    GoodsMaterial queryById(String yclId);

    boolean deleteById(String yclId);

    void updateByNum(GoodsMaterial goodsMaterial);


    Page<GoodsMaterialVo> listall(GoodsMaterialDto goodsMaterialDto);
}




